<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改士地资产')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-land-edit" th:object="${tLandHouseAssets}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">资产编号：</label>
                <div class="col-sm-3">
                    <input name="code" th:field="*{code}" class="form-control" type="text" required>
                </div>
                <label class="col-sm-2 control-label is-required">资产名称：</label>
                <div class="col-sm-3">
                    <input name="name" th:field="*{name}" class="form-control" type="text" required>
                </div>

            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">资产地址：</label>
                <div class="col-sm-3">
                    <input name="address" th:field="*{address}" class="form-control" type="text" required>
                </div>
                <label class="col-sm-2 control-label is-required">资产状态：</label>
                <div class="col-sm-3">
                    <select name="state"  class="form-control" th:with="type=${@dict.getType('land_state')}" required>
                        <option >请选择...</option>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{state}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">企业层次：</label>
                <div class="col-sm-3">
                    <input name="orgLevel" th:field="*{orgLevel}" class="form-control" type="text" required>
                </div>
                <label class="col-sm-2 control-label is-required">企业名称：</label>
                <div class="col-sm-3">
                    <input name="orgName" th:field="*{orgName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">士地宗号：</label>
                <div class="col-sm-3">
                    <input name="caseNo" th:field="*{caseNo}" class="form-control" type="text" required>
                </div>
                <label class="col-sm-2 control-label is-required">土地面积：</label>
                <div class="col-sm-3">
                    <input name="acreage" th:field="*{acreage}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">土地用途：</label>
                <div class="col-sm-3">
                    <select name="purpose" class="form-control" th:with="type=${@dict.getType('land_purpose')}" required>
                        <option >请选择...</option>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{purpose}"></option>
                    </select>
                </div>
                <label class="col-sm-2 control-label is-required">土地获得时间：</label>
                <div class="col-sm-3">
                    <div class="input-group date">
                        <input name="obtainTime" th:value="${#dates.format(tLandHouseAssets.obtainTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">士地取得方式：</label>
                <div class="col-sm-3">
                    <input name="obtainType" th:field="*{obtainType}" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">土地实际用途：</label>
                <div class="col-sm-3">
                    <input name="factPurpose" th:field="*{factPurpose}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">土地成交价：</label>
                <div class="col-sm-3">
                    <input name="transPrice" th:field="*{transPrice}" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">土地成交单价：</label>
                <div class="col-sm-3">
                    <input name="transUnitPrice" th:field="*{transUnitPrice}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">士地规划变更情况：</label>
                <div class="col-sm-8">
                    <textarea name="planChangeInfo" th:field="*{planChangeInfo}" class="form-control"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">购进价合计：</label>
                <div class="col-sm-3">
                    <input name="buyTotalPrice" th:field="*{buyTotalPrice}" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">印花税：</label>
                <div class="col-sm-3">
                    <input name="stampTax" th:field="*{stampTax}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">士地滞纳金：</label>
                <div class="col-sm-3">
                    <input name="overdueFine" th:field="*{overdueFine}" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">土地性质：</label>
                <div class="col-sm-3">
                    <input name="property" th:field="*{property}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">土地容积率：</label>
                <div class="col-sm-3">
                    <input name="plotRatio" th:field="*{plotRatio}" class="form-control" type="text">
                </div>
                <button class="btn btn-minier btn-purple" type="button" onclick="openCoordinate()">
                    <i class="ace-icon fa fa-search bigger-110"></i>
                    <span class="bigger-110 no-text-shadow">获取经纬度坐标</span>
                </button>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">经度：</label>
                <div class="col-sm-3">
                    <input name="longitude" th:field="*{longitude}" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">纬度：</label>
                <div class="col-sm-3">
                    <input name="latitude" th:field="*{latitude}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">建设项目：</label>
                <div class="col-sm-3">
                    <input name="buildingProject" th:field="*{buildingProject}" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">建设公司：</label>
                <div class="col-sm-3">
                    <input name="buildingCompany" th:field="*{buildingCompany}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">地块编号：</label>
                <div class="col-sm-3">
                    <input name="landCode" th:field="*{landCode}" class="form-control" type="text" required>
                </div>
                <label class="col-sm-2 control-label is-required">土地证号：</label>
                <div class="col-sm-3">
                    <input name="landCertificate" th:field="*{landCertificate}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">使用期限：</label>
                <div class="col-sm-3">
                    <input name="deadline" th:field="*{deadline}" class="form-control" type="text" required>
                </div>
                <label class="col-sm-2 control-label is-required">面积m2：</label>
                <div class="col-sm-3">
                    <input name="proportion" th:field="*{proportion}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">权利性质：</label>
                <div class="col-sm-3">
                    <input name="natureOfRight" th:field="*{natureOfRight}" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">证书登记日期：</label>
                <div class="col-sm-3">
                    <div class="input-group date">
                        <input name="recordDate" th:value="${#dates.format(tLandHouseAssets.recordDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">证件位置：</label>
                <div class="col-sm-3">
                    <input name="place" th:field="*{place}" class="form-control" type="text" required>
                </div>
                <label class="col-sm-2 control-label is-required">资产类别：</label>
                <div class="col-sm-3">
                    <select name="type" class="form-control" th:with="type=${@dict.getType('land_type')}" required>
                        <option >请选择...</option>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{type}"></option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">委托代管公司：</label>
                <div class="col-sm-3">
                    <input name="manageCompany" th:field="*{manageCompany}" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">代管费用：</label>
                <div class="col-sm-3">
                    <input name="manageExpense" th:field="*{manageExpense}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">代管开始日期：</label>
                <div class="col-sm-3">
                    <div class="input-group date">
                        <input name="manageStartDate" th:value="${#dates.format(tLandHouseAssets.manageStartDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
                <label class="col-sm-2 control-label">代管结束日期：</label>
                <div class="col-sm-3">
                    <div class="input-group date">
                        <input name="manageEndDate" th:value="${#dates.format(tLandHouseAssets.manageEndDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">代管协议：</label>
                <div class="col-sm-8">
                    <textarea name="manageAgreement" th:field="*{manageAgreement}" class="form-control"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">开发进度：</label>
                <div class="col-sm-3">
                    <input name="progress" th:field="*{progress}" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">计划工业建筑面积(m2)：</label>
                <div class="col-sm-3">
                    <input name="planIndustrialAcreage" th:field="*{planIndustrialAcreage}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">计划商业建筑面积(m2)：</label>
                <div class="col-sm-3">
                    <input name="planBizAcreage" th:field="*{planBizAcreage}" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">计划住宅建筑面积(m2)：</label>
                <div class="col-sm-3">
                    <input name="planResidenceAcreage" th:field="*{planResidenceAcreage}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">计划车库建筑面积(m2)：</label>
                <div class="col-sm-3">
                    <input name="planCarportAcreage" th:field="*{planCarportAcreage}" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">计划绿化面积(m2)：</label>
                <div class="col-sm-3">
                    <input name="planAfforestAcreage" th:field="*{planAfforestAcreage}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">整改情况：</label>
                <div class="col-sm-3">
                    <select name="reorganize" class="form-control" th:field="*{reorganize}">
                        <option value="">请选择...</option>
                        <option value="已整改" >已整改</option>
                        <option value="未整改" >未整改</option>
                        <option value="未解押" >未解押</option>
                    </select>
                </div>
                <label class="col-sm-2 control-label">土地使用期限：</label>
                <div class="col-sm-3">
                    <input name="serviceLife" th:field="*{serviceLife}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input name="remark" th:field="*{remark}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "land/land";
        $("#form-land-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-land-edit').serialize());
            }
        }

        $("input[name='obtainTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='recordDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='manageStartDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='manageEndDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>